<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"	
	xmlns:p="http://primefaces.org/ui"
	template="/pages/plantilla.xhtml">
	
	<ui:define name="title"> WORKSPACE: Gestion Ventana Principal </ui:define>
	<ui:define name="contenido" >
	<f:view>
		<h:form id="myform" prependId="false" enctype="multipart/form-data">
			<p:growl id="growl" showDetail="true"/> 
			<p:commandButton icon="ui-icon-disk" title="Guardar mensajes del Muro" 
			actionListener="#{loginController.guardarVentanaPrincipal}" update="growl"/>
			<table style="width:100%">
			<tr><td width="50%">
			<p:inputTextarea value="#{loginController.ventanaPrincipal.descTituloPrincipal}" 
			style="color: #65533F; font-size: 24px; width:400px"/>
						</td>
			<td rowspan="2">
			<p:fieldset>
			<p:fileUpload fileUploadListener="#{loginController.subirArchivo}"  
            mode="advanced" allowTypes="/(\.|\/)(gif|jpe?g|png)$/" update="growl, imagePrin"
            sizeLimit="100000000"/> 
			<p:graphicImage id="imagePrin" value="#{loginController.image}" width="400"/>
			</p:fieldset>
			</td>
			</tr>
			<tr>
			<td align="justify">
			<br/>
			<p:inputTextarea value="#{loginController.ventanaPrincipal.descTitulo1}"
			style=" width:400px"/>
			</td>
			</tr>
			</table>
 		</h:form>
 		</f:view>
	</ui:define>
</ui:composition>